package com.wl.day74.action;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.wl.day74.biz.BookTypeBiz;
import com.wl.day74.model.BookType;

@Controller
@RequestMapping("/bookType")
public class BookTypeAction extends BaseAction {
	@Autowired
	private BookTypeBiz bookTypeBiz;
	
	@RequestMapping("list")
	public void list(Map<String, Object> map){
		List<BookType> bookTypeList = bookTypeBiz.findAll();
		System.out.println("bookTypeList.size======" + bookTypeList.size());
		map.put("bookTypeList", bookTypeList);
	}
	
	public void setBookTypeBiz(BookTypeBiz bookTypeBiz) {
		this.bookTypeBiz = bookTypeBiz;
	}
}
